﻿using MediatR;
using T.Materials.Domain.Dto;
using static T.Materials.Domain.Enum.Enums;

namespace T.Materials.API.Application.Command.MaterialRequisitionCommand
{
    /// <summary>
    /// 添加物资领用需求命令
    /// </summary>
    public class AddMaterialRequisitionCommand : IRequest<int>
    {
        /// <summary>
        /// 公司ID全球唯一标识符
        /// </summary>
        public string? CompanyID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int User_Id { get; set; }

        /// <summary>
        /// 物资与入库ID
        /// </summary>
        public int MaterialStoreId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        public string? UsageDescription { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        public string? Recipient { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? MaterialRequisitNotes { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalStatus ApprovalStatus { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 存储物资领用DTO
        /// </summary>
        public List<MaterialRequisitionDto>? materialRequisitionDtos { get; set; }
    }
}
